
var script = document.createElement('script');
//script.type = 'text/javascript';
script.src = 'https://www.baidu.com?callback=handleData';
document.body.appendChild(script);
console.log('ddd')
// 回调执行函数
function handleData(res) {
    console.log('ddd')
    data = JSON.stringify(res)
    console.log(data);
}